#!/bin/bash -e

if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}
# set -u	not because of debhelper

update-rc.d -f frr remove >> /dev/null

if [ "$1" = "purge" ]; then
	rm -rf /etc/frr /var/run/frr /var/log/frr
  	userdel frr >/dev/null 2>&1 || true
fi

#DEBHELPER#
